{% extends "NartiBouncerBundle::base.html.twig" %}

{% block css %}
    <style>
     form label, form input{  display: block; }
    </style>
{% endblock %}

{% block main %}
<div id="regDiv" title="Registrazione" >
    
    <form id="register-form" action="{{ path('account_create')}}"  method="post" {{ form_enctype(form) }} >
        <fieldset>             
            <div class="errorsummary">
                {{ form_errors(form) }}
                {{ form_errors(form.user.username) }}
            </div>

            <label for="registration_user_username">Bouncer</label>
            {{ form_widget(form.user.username, { 'attr': {'class' : 'required text ui-widget-content ui-corner-all', 'size' : 30} }) }}

            {{ form_label(form.user.password.password) }}
            {{ form_widget(form.user.password.password, { 'attr': {'class' : 'required text ui-widget-content ui-corner-all', 'size' : 30} }) }}

            <label for="registration_password_confirm">Conferma password</label>
            {{ form_widget(form.user.password.confirm, { 'attr': {'class' : 'required text ui-widget-content ui-corner-all', 'size' : 30} }) }}

            {{ form_rest(form) }}
        </fieldset>
    </form>
    
</div>

{% endblock %}

{% block js %}
<script type="text/javascript">
    $(function(){
        $("#regDiv").dialog({
                    height: 360,
                    width: 350,
                    buttons: {
			"Registra": function() { 
                        }
                    }        
        });
    });
</script>  
{% endblock %}

